package com.jetpack.jetpacknavtest

import android.util.Log
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent

/**
 * Created by harisucici on 2020/5/11
 * Class description:
 */
class LifeObserver :LifecycleObserver{
    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    fun onCreat(){
        Log.e("LifeObserver","ON_CREATE")
    }
  @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    fun onResume(){
        Log.e("LifeObserver","ON_RESUME")
    }

}